package com.letoken.platform.app.configuration;

import cn.wildfirechat.sdk.AdminConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class ImConfig {


    @Value("${im.server.host}")
    private String imServerHost;

    @Value("${im.server.secret}")
    private String secret;


    @PostConstruct
    public void init(){
        AdminConfig.initAdmin(imServerHost, secret);
    }
}
